<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:import url="/top.do"></c:import>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="content">
					<p id="whereami">
						<html:link action="/main.do">首页</html:link>-
						
						<zjf:platGps plat="${plat}"/>
					</p>

<!-- 子板块 -->
<c:if test="${plat.childs!=null && fn:length(plat.childs)>0}">
	<table class="table">
		<tr class="table_header">
			<td>子版块名</td>
			<td>主题数</td>
			<td>帖子数</td>
							
		</tr>
	<c:forEach items="${plat.childs}" var="pd">
					<c:if test="${pd.visible == true}">
						<tr class= "row1">
							<td><html:link action="/postList.do?pid=${pd.id}">${pd.name }</html:link>
							<br/>${pd.note}
							</td>
							<td>${pd.totalPost}</td>
							<td>${pd.totalPosts}</td>
						</tr>
					</c:if>
	</c:forEach>
	</table>
</c:if>
<!-- 子板块 -->
<div align="right"><zjf:privilege value="front.post.add"><html:link action="/postPubUI.do?pid=${pid}">发表主题帖</html:link></zjf:privilege></div>
<!-- 分页功能 start -->
<html:link action="/postList.do?pid=${pid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/postList.do?pid=${pid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/postList.do?pid=${pid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}

<!-- 分页功能 end -->
					
					
					<table class="table">
						<tr class="table_header">
							<td width="300">帖子名</td>
							<td>作者</td>
							<td>回复数</td>
							<td>浏览数</td>
							<td>发表时间</td>
							
						</tr>
						<c:forEach items="${datas}" var="data">
							<tr class= "row1">
							<td><html:link action="/postView.do?sid=${data.id}">${data.title }</html:link></td>
							<td>${data.author.username}</td>
							<td>${fn:length(data.replys)}</td>
							<td>${data.viewCount}</td>
							<td>${data.pubDate}</td>
						</tr>
						</c:forEach>
					</table>
<!-- 分页功能 start -->
<html:link action="/postList.do?pid=${pid}&page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/postList.do?pid=${pid}&page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/postList.do?pid=${pid}&page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}

<!-- 分页功能 end -->
					
				<p></p>
				</div>
			</div>
	
		</div>
	</body>
</html>
<c:import url="/foot.do"></c:import>